<%@ page import="cqcvc.edu.cn.entity.MemberInfo" %><%--
  Created by IntelliJ IDEA.
  User: zhouyz
  Date: 2023/1/5
  Time: 20:03
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>孕婴网-用户信息</title>
</head>
<jsp:include page="../index/index-header.jsp"></jsp:include>
<body>
<jsp:useBean id="memberInfo" class="cqcvc.edu.cn.entity.MemberInfo" scope="session"/>
<%
    memberInfo =(MemberInfo)session.getAttribute("memberInfo");
%>
<div class="container" ng-controller="userCtrl" ng-init="getUser()">
    <img src="<%=request.getContextPath()%>/images/slider2.png" alt="" style="width: 100%" />
    <h2>欢迎回来</h2><jsp:getProperty name="memberInfo" property="memName"/>
    <hr />
    <h3>个人资料</h3>
    <form action="update?id=<jsp:getProperty name="memberInfo" property="id"/>" method="post">
        <div class="row">
            <div class="col-xs-3 text-right" style="font-weight: 300">
                用户名:
            </div>
            <div class="col-xs-9 text-left">
                <jsp:getProperty name="memberInfo" property="memUsername"/>
            </div>
        </div>
        <div class="row">
            <div class="col-xs-3 text-right" style="font-weight: 300">
                姓名:
            </div>
            <div class="col-xs-9 text-left">
                <input type="text" name="memName" required="" value="<jsp:getProperty name="memberInfo" property="memName"/>">
            </div>
        </div>
        <div class="row">
            <div class="col-xs-3 text-right" style="font-weight: 300">
                年龄:
            </div>
            <div class="col-xs-9 text-left">
                <input type="text" name="memAge" required="" value="<jsp:getProperty name="memberInfo" property="memAge"/>">
            </div>
        </div>
        <div class="row">
            <div class="col-xs-3 text-right" style="font-weight: 300">
                性别:
            </div>
            <div class="col-xs-9 text-left">
                <input name="memSex" type="radio" value="男" required="" />男
                <input name="memSex" type="radio" value="女" required="" />女
            </div>
        </div>
        <div class="row">
            <div class="col-xs-3 text-right" style="font-weight: 300">
                家庭地址:
            </div>
            <div class="col-xs-9 text-left">
                <input type="text" name="memAddress" required="" value="<jsp:getProperty name="memberInfo" property="memAddress"/>">
            </div>
        </div>
        <div class="row">
            <div class="col-xs-3 text-right" style="font-weight: 300">
                邮箱:
            </div>
            <div class="col-xs-9 text-left">
                <input type="text" name="memEmail" required="" value="<jsp:getProperty name="memberInfo" property="memEmail"/>">
            </div>
        </div>
        <div class="row">
            <div class="col-xs-3 text-right" style="font-weight: 300">
                电话:
            </div>
            <div class="col-xs-9 text-left">
                <input type="text" name="memPhone" required="" value="<jsp:getProperty name="memberInfo" property="memPhone"/>">
            </div>
        </div>
        <div class="row">
            <div class="col-xs-3 text-right" style="font-weight: 300">
                密码:
            </div>
            <div class="col-xs-9 text-left">
                <input type="text" name="memPassword" required="" value="<jsp:getProperty name="memberInfo" property="memPassword"/>">
            </div>
        </div>
        <div style="height: 40px">
            <div class="col-sm-offset-2 col-sm-10">
                <button style="width: 100px;float: right" type="submit" class="col-sm-12 btn btn-primary" >修改并提交</button>
            </div>
        </div>
        <div>
            <img src="images/memberInfoShowPic?id=<%=memberInfo.getId()%>" style="height: 195px;width: 260px" class="img-responsive" alt="" />

        </div>

    </form>

</div>

<jsp:include page="../index/index-foot.jsp"></jsp:include>
</body>
</html>
